package com.example.androidpractice.model;

import androidx.annotation.NonNull;
import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;
import androidx.databinding.ObservableField;
import androidx.databinding.ObservableInt;

import com.example.androidpractice.BR;

public class User {
    public final ObservableField<String>  name = new ObservableField<>();
    public final ObservableInt age =new ObservableInt();
    public final  ObservableField<String> desc =new ObservableField<>();

    public User(String name, int age,String desc) {
        this.name.set( name);
        this.age.set(age);
        this.desc.set(desc);
    }


    @NonNull
    @Override
    public String toString() {
        return this.name.get() + ":" + this.age.get()+":"+this.desc.get();
    }
}